/*获取请求路径的参数*/

export function getQueryString(param) {
    let query = window.location.search.substring(1);
    let vars = query.split("&");
    for (var i = 0; i < vars.length; i++) {
        var pair = vars[i].split("=");
        if (pair[0] === param) {
            return pair[1];
        }
    }
    return null;
}

export function getWeChatCallback(toFullPath) {
    return window.location.origin + (process.env.BASE_URL || process.env.VUE_PUBLIC_PATH) + '#' + toFullPath;
}


